-
Notifications
You must be signed in to change notification settings - Fork 0
hw4 #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
hw4 #22
Conversation
| @@ -0,0 +1,124 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не надо этот файл выкладывать
| import java.util.Map; | ||
|
|
||
| /** Client for getting file or list of them from server.*/ | ||
| public class FTPClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а исправления задачи 3 вы будете сюда руками перекладывать? эту ветку стоило бы отвести от hw3, и добавить в неё gui для клиента
| newRoot += '/'; | ||
| } | ||
| ((SaveController)fxmlLoader.getController()).initialize(client, newRoot + text); | ||
| Stage stage = new Stage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а после сохранения файла никак обратно не вернуться
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ещё бы хорошо, чтобы оно поставляло текущее имя файла как дефолт
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А что означает не вернуться? Меню со списком папок и файлов вроде не закрывается, когда сохраняем, можно дальше что-то делать
| try { | ||
| scene = new Scene(fxmlLoader.load(), 400, 200); | ||
| } catch (IOException e) { | ||
| Platform.exit(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это как-то слишком радикально. нужно пробросить исключение в main(), а там как-то сказать пользователю, что произошла внутренняя ошибка
No description provided.